package avicit.bdp.dcs.plugin.rdbms.param;

import avicit.bdp.dcs.plugin.BaseDataxParam;
import avicit.bdp.dcs.task.dto.ColumnMappingDto;

import java.util.List;

/**
 * @金航数码科技有限责任公司
 * @作者：liyb
 * @邮箱：liyb@avic-digital.com
 * @创建时间： 2021-01-27 15:35
 * @类说明：用于传参，构建json
 * @修改记录：
 */
public class RdbmsDataxParam extends BaseDataxParam {

    // 表名
    private List<String> tableList;

    // 列名
    private List<String> columnList;

    // querySql 属性，如果指定了，则优先于columns参数
    private String querySql;

    // preSql 属性
    private String preSql;

    // 切分主键
    private String splitPk;

    // where条件
    private String whereParam;

    // 脱敏策略
    private List<ColumnMappingDto> policyList;

    public List<String> getTableList() {
        return tableList;
    }

    public void setTableList(List<String> tableList) {
        this.tableList = tableList;
    }

    public List<String> getColumnList() {
        return columnList;
    }

    public void setColumnList(List<String> columnList) {
        this.columnList = columnList;
    }

    public String getQuerySql() {
        return querySql;
    }

    public void setQuerySql(String querySql) {
        this.querySql = querySql;
    }

    public String getPreSql() {
        return preSql;
    }

    public void setPreSql(String preSql) {
        this.preSql = preSql;
    }

    public String getSplitPk() {
        return splitPk;
    }

    public void setSplitPk(String splitPk) {
        this.splitPk = splitPk;
    }

    public String getWhereParam() {
        return whereParam;
    }

    public void setWhereParam(String whereParam) {
        this.whereParam = whereParam;
    }

    public List<ColumnMappingDto> getPolicyList() {
        return policyList;
    }

    public void setPolicyList(List<ColumnMappingDto> policyList) {
        this.policyList = policyList;
    }

}
